package com.Yukiha.gachamod.item;

import com.Yukiha.gachamod.GachaMod;
import com.Yukiha.gachamod.util.ModCreativeTab;
import net.minecraft.world.item.Item;
import net.minecraft.world.item.Item.Properties;
import net.minecraftforge.eventbus.api.IEventBus;
import net.minecraftforge.registries.DeferredRegister;
import net.minecraftforge.registries.ForgeRegistries;
import net.minecraftforge.registries.RegistryObject;

public class ModItems {
    public static final DeferredRegister<Item> ITEMS =
        DeferredRegister.create(ForgeRegistries.ITEMS, GachaMod.MODID);

    public static final RegistryObject<Item> COMMON_TICKET = ITEMS.register("common_ticket",
            () -> new GachaTicketItem("common", new Item.Properties().stacksTo(1)));

    public static final RegistryObject<Item> RARE_TICKET = ITEMS.register("rare_ticket",
            () -> new GachaTicketItem("rare", new Item.Properties().stacksTo(1)));

    public static final RegistryObject<Item> EPIC_TICKET = ITEMS.register("epic_ticket",
            () -> new GachaTicketItem("epic", new Item.Properties().stacksTo(1)));

    public static final RegistryObject<Item> LEGENDARY_TICKET = ITEMS.register("legendary_ticket",
            () -> new GachaTicketItem("legendary", new Item.Properties().stacksTo(1)));

    public static void register(IEventBus bus) {
        ITEMS.register(bus);
    }
}
